package com.ghy.springbootsentinel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: 卢佳新
 * @version: v1.0
 * @description: com.ghy.springbootsentinel
 * @date:2022/1/3 11:05
 * @Motto 不积跬步，无以至千里；不积小流，无以成江海。
 */
@RestController
public class SentinelController {
    @Autowired
    SentinelService sentinelService;

    @GetMapping("/hello/{name}")
    public String sayHello(@PathVariable("name") String name){
        return sentinelService.doTest(name);
    }

}
